const routerView = {
    render: (h) => h('router-view')
}
// 菜单栏路由
export const routerList = [{
        path: "/",
        name: "home",
        component: () => import("@/views/Home/index.vue"),
        meta: {
            title: '首页',
            icon: "icon-shouye"
        }
    },
    {
        path: "/goods",
        name: "goods",
        component: () => routerView,
        meta: {
            title: "商品管理",
            icon: "icon-shangpinguanli"
        },
        redirect: "/goods_list",
        children: [{
            path: "/goods_list",
            name: "goods_list",
            component: () => import("@/views/Goods/goods_list"),
            meta: {
                title: "商品列表",
                icon: "icon-shangpinliebiao"
            }
        }, {
            path: "/goods_release",
            name: "goods_release",
            component: () => import("@/views/Goods/goods_release"),
            meta: {
                title: "商品发布",
                icon: "icon-shangpinfabu"
            }
        }]
    }, {
        path: "/user",
        name: "user",
        component: () => routerView,
        meta: {
            title: "用户管理",
            icon: "icon-yonghuguanli"
        },
        redirect: "/user_list",
        children: [{
            path: "/user_list",
            name: "user_list",
            component: () => import("@/views/User/user_list"),
            meta: {
                title: "用户列表",
                icon: "icon-s_yonghuliebiao"
            }
        }, {
            path: "/user_role",
            name: "user_role",
            component: () => import("@/views/User/user_role"),
            meta: {
                title: "用户权限",
                icon: "icon-yonghuquanxian"

            }
        }]
    },
]
// 二级路由
export const subRouter = []